package com.ruicar.afs.cloud.afscase.loanapprove.task.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruicar.afs.cloud.afscase.loanapprove.task.condition.LoanApproveTaskCondition;
import com.ruicar.afs.cloud.afscase.loanapprove.task.vo.LoanApproveTaskVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>Description:放款审核待办任务映射类</p>
 *
 * @author xueyu.ma
 * @CreateDate 2020-5-29
 */
@Mapper
public interface LoanApproveTaskMapper {
    IPage<LoanApproveTaskVO> getLoanApproveTaskVOList(Page page, @Param("loanApproveTaskCondition") LoanApproveTaskCondition loanApproveTaskCondition);

    IPage<LoanApproveTaskVO> getloanDealWithTaskList(Page page, @Param("loanApproveTaskCondition") LoanApproveTaskCondition loanApproveTaskCondition);

    //锁定、解锁
    Integer modifyLock(@Param("contractNoList") List contractNoList, @Param("lockStatus") String lockStatus, @Param("lockRemark") String lockRemark);

    //添加标签
    Integer modifyLabel(@Param("contractNoList") List contractNoList,@Param("label") String label);

    //置顶
    Integer modifyTop(@Param("contractNoList") List contractNoList,@Param("topStatus") String topStatus);

    IPage<LoanApproveTaskVO> queryLoanCommonPoolTaskList(Page page, @Param("loanApproveTaskCondition")LoanApproveTaskCondition loanApproveTaskCondition);

    IPage<LoanApproveTaskVO> queryWaitReviewPoolTaskList(Page page, @Param("loanApproveTaskCondition")LoanApproveTaskCondition loanApproveTaskCondition);

    IPage<LoanApproveTaskVO> queryLoanAllPoolTaskList(Page page, @Param("loanApproveTaskCondition")LoanApproveTaskCondition loanApproveTaskCondition);
}
